package com.sgb.kjwl.view.ui.adapter.self.logistics;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.transport.SingleItemEntity;
import com.swgk.core.customview.SeeMoreView;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * @author: 杨畔
 * @date: 4/16/21 5:29 PM
 * @Description: 自营车辆信息适配器
 */
public class SelfCarDetailAdapter extends BaseQuickAdapter<SingleItemEntity, BaseViewHolder> {
    public SelfCarDetailAdapter(@Nullable List<SingleItemEntity> data) {
        super(R.layout.app_item_self_car_detail, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder helper, SingleItemEntity item) {
        helper.setText(R.id.tv_key, item.getLeftString());
        SeeMoreView moreView = helper.getView(R.id.tv_value);
        moreView.setText(item.getRightString());
    }
}
